<template>
  <van-tabbar placeholder v-model="activeName">
    <van-tabbar-item  to="/home" icon="home-o">首页</van-tabbar-item>
    <van-tabbar-item  to="/Category" icon="apps-o">分类</van-tabbar-item>
    <van-tabbar-item  to="/Cart" icon="cart-o">购物车</van-tabbar-item>
    <van-tabbar-item  to="/Me" icon="user-o">我的</van-tabbar-item>
  </van-tabbar>
</template>

<script>
  export default {
    data() {
      return {
        activeName: Number(sessionStorage.getItem('active')) || 0
      }
    }
  }
</script>
